<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('home')}"></@showTitle>

<br/>

<b style="margin-left:2px">${i18n.getMessage('recentlyRegisteredStudents')}:</b>
<p style="float: right;">
	<a href="student/doAllRecentlyReport.sgt">${i18n.getMessage('excel.export')}</a> |
	<a href="javascript:cc('student/allRecently.sgt')">${i18n.getMessage('student.allRecently')}</a></p>
<@display.table id="listTable" name="students">
	<@display.column title="${i18n.getMessage('lastName')}" class="w180">${listTable.lastName}</@display.column>
	<@display.column title="${i18n.getMessage('firstName')}" class="w100"><a href="#" onclick="cc('student/showInfoStudent.sgt?id=${listTable.id}')">${listTable.firstName}</a></@display.column>
	<@display.column title="${i18n.getMessage('gender')}" class="w100 center">${i18n.getMessage(listTable.gender.key)}</@display.column>
	<@display.column title="${i18n.getMessage('dateOfBirth')}" class="w100 center">${(listTable.dateOfBirth?date)!}</@display.column>
	<@display.column title="${i18n.getMessage('phoneNumber')}" class="w180">${(listTable.phoneNumber)!}</@display.column>
	<@display.column title="${i18n.getMessage('type')}" class="center">${(listTable.type.name)!}</@display.column>
</@display.table>
<br/>

<b style="margin-left:2px">${i18n.getMessage('recentlyRegisteredOfferingReceipts')}:</b>
<p style="float: right;"><a href="javascript:cc('receipt/allRecently.sgt')">${i18n.getMessage('receipt.allRecently')}</a></p>
<@display.table id="listTable" name="offeringReceipts">
	<@display.column title="${i18n.getMessage('lastName')}" property="student.lastName" class="w180"></@display.column>
	<@display.column title="${i18n.getMessage('firstName')}" property="student.firstName" href="student/showInfoStudent.sgt" paramId="id" paramProperty="student.id" class="w100"></@display.column>
	<@display.column title="${i18n.getMessage('number')}" class="w100"><a href="#" onclick="cc('receipt/showInfoOfferingReceipt.sgt?id=${listTable.id}')"><#if listTable.number?has_content>${(listTable.number)!}<#else>None</#if></a></@display.column>
	<@display.column title="${i18n.getMessage('date')}" property="date" format="{0,date,${i18n.getMessage('format.date')}}" class="center w100"></@display.column>
	<@display.column title="${i18n.getMessage('offering')}" property="offering.name" href="offering/showInfoOffering.sgt" paramId="id" paramProperty="offering.id" class="w180"></@display.column>
	<@display.column title="${i18n.getMessage('cashier')}" property="cashier.fullName" href="user/showInfoUser.sgt" paramId="id" paramProperty="cashier.id"></@display.column>
</@display.table>

<br/>

<b style="margin-left:2px">${i18n.getMessage('recentOfferings')}:</b>
<p style="float: right;"><a href="javascript:cc('offering/allOpening.sgt')">${i18n.getMessage('offering.allOpening')}</a></p>
<@display.table id="listTable" name="offerings">
	<@display.column title="${i18n.getMessage('name')}" property="name" href="offering/showInfoOffering.sgt" paramId="id" paramProperty="id" class="w180"></@display.column>
	<@display.column title="${i18n.getMessage('room')}" property="room.code" href="materialFacilities/showInfoRoom.sgt" paramId="id" paramProperty="room.id" class="w100"></@display.column>
	<@display.column title="${i18n.getMessage('shift')}" class="center w100">${(listTable.shift.startTime?time)!}-${(listTable.shift.endTime?time)!}</@display.column>
	<@display.column title="${i18n.getMessage('startDate')}" property="startDate" format="{0, date, ${i18n.getMessage('format.date')}}" class="center w100"></@display.column>
	<@display.column title="${i18n.getMessage('endDate')}" property="endDate" format="{0, date, ${i18n.getMessage('format.date')}}" class="center w180"></@display.column>
	<@display.column title="${i18n.getMessage('student.numberOf')}" style="text-align:center">${listTable.numberOfActiveStudents}</@display.column>
</@display.table>

<br/>